﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Expect.Core.Errors
{
    /// <summary>
    /// Exception for unfound method
    /// </summary>
    public class MethodNotFoundException : Exception
    {
        /// <summary>
        /// The name of the missing method
        /// </summary>
        public string MethodName { get; set;}

        /// <summary>
        /// The target type on wich we search for the method
        /// </summary>
        public Type TargetType { get; set;}

        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="methodName"></param>
        /// <param name="targetType"></param>
        public MethodNotFoundException(string methodName, Type targetType)
        {
            MethodName = methodName;
            TargetType = targetType;
        }
    }
}
